/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 * 
 *	Created on 2010-12-27 下午02:58:12
 */
package cn.com.ccxe.dao;

import java.util.List;

import cn.com.ccxe.core.entity.CrawlExpression;

/**
 * 列表页DAO.<br>
 * @author hetao
 */
public interface CrawlExpressionDao {

	/**
	 *  根据ID获取{@link CrawlExpression}.
	 * @param websiteId
	 * @return
	 */
	public CrawlExpression get(int websiteId);
	
	/**
	 * 添加{@link CrawlExpression}.
	 * @param listPage
	 * @return
	 */
	public OperationStatus add(CrawlExpression listPage);
	
	/**
	 * 根据ID删除{@link CrawlExpression}.
	 * @param id
	 * @return
	 */
	public OperationStatus del(int id);
	
	/**
	 * 修改{@link CrawlExpression}.
	 * @param listPage
	 * @return
	 */
	public OperationStatus update(CrawlExpression listPage);

	public List<CrawlExpression> getAll();
	
}
